package com.charactereducation.productcenter.service;


import com.charactereducation.module.vo.ProductEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by zpc on 2017/3/31.
 */
public interface ProductEntityService {

    ProductEntity modifyProductEntity(ProductEntity productEntity);


    /**
     * @param map productId               查询productId的所以产品
     *            productEntityId         查询productEntityId的产品
     * @return
     */
    List<ProductEntity> getProductEntityList(Map<String, String> map);


    ProductEntity getProductEntityByProductEntityId(Long productEntityId);

    ProductEntity getProductEntity(Map<String, String> map);
    //根据活动id查询产品
    List<ProductEntity> getProductEntityByActivityId(Long activityId);

    void reduceProductEntity(Long productEntityId);
    Integer getProductEntityAmount(Integer productEntityAmount, Long productEntityId);
}
